package priv.pront.code.lanqiao.competition.course.date0330;

public class 钟表 {
    public static void main(String[] args) {
        for (int s = 0; s <= 6; s++) {
            int shi = 360 / 12 * s;
            for (int f = 0; f < 60; f++) {
                int fen = 360 / 60 * f;
                for (int m = 0; m < 60; m++) {
                    int miao = 360 / 60 * m;
                    int big = Math.max(shi, fen);
                    int small = Math.min(shi, fen);
                    int A = Math.min(360 - big + small, big - small);
                    big = Math.max(fen, miao);
                    small = Math.min(fen, miao);
                    int B = Math.min(360 - big + small, big - small);
                    if (A == 2 * B) {
                        System.out.println(s + " " + f + " " + m);
                    }
                }
            }
        }
    }
}
